import request from '@/utils/request'

// 查询定增项目-交易记录列表
export function listDealSpoTransactionRecords(query) {
  return request({
    url: '/records/dealSpoTransactionRecords/list',
    method: 'get',
    params: query
  })
}

// 查询定增项目-交易记录详细
export function getDealSpoTransactionRecords(id) {
  return request({
    url: '/records/dealSpoTransactionRecords/' + id,
    method: 'get'
  })
}

// 查询定增项目-交易记录统计
export function sumDealSpoTransactionRecords(dealId) {
  return request({
    url: '/records/dealSpoTransactionRecords/getSum/' + dealId,
    method: 'get'
  })
}

// 保存定增项目-交易记录
export function saveDealSpoTransactionRecords(data) {
  return request({
    url: '/records/dealSpoTransactionRecords/save',
    method: 'post',
    data: data
  })
}

// 删除定增项目-交易记录
export function delDealSpoTransactionRecords(id) {
  return request({
    url: '/records/dealSpoTransactionRecords/' + id,
    method: 'delete'
  })
}

// 导出定增项目-交易记录
export function exportDealSpoTransactionRecords(query) {
  return request({
    url: '/records/dealSpoTransactionRecords/export',
    method: 'get',
    params: query
  })
}
